package com.dz.controller.user;

import com.dz.result.Result;
import com.dz.service.ShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 鄧浩奇
 * @classname ShopController
 * @description
 * @since 2024/1/4 20:27
 **/

@Api(tags = "用户端店铺操作接口")
@RestController("userShopController")
@RequestMapping("/user/shop")
public class ShopController {

    @Resource
    private ShopService shopService;

    @ApiOperation("获取营业状态")
    @GetMapping("/status")
    public Result<Integer> getShopStatus() {
        return shopService.getShopStatus();
    }
}
